export function getQueryParams(url) {
  const arrSearch = url
    .split('?')
    .pop()
    .split('#')
    .shift()
    .split('&')
  const obj = {}
  arrSearch.forEach((item) => {
    const [k, v] = item.split('=')
    obj[k] = v
    return obj
  })
  return obj
}
